<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta charset='utf-8'>
        <meta name="author" content="order by dede58.com"/>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>收货地址</title>
		<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="Cache-Control" content="no-siteapp">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/my.css">
		<script src="js/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="js/jquery.SuperSlide.2.1.js"></script>
		<script type="text/javascript" src="js/other.js"></script>
		<script type="text/javascript" src="js/jquery-3.3.1.js"></script>
		<script type="text/javascript" src="js/my.js"></script>
		<script type="text/javascript" src="js/adress2.js"></script>
		<script type="text/javascript" src="js/distpicker.data.js"></script>
		<script type="text/javascript" src="js/distpicker.js"></script>
		<script type="text/javascript" src="js/main.js"></script>
	</head>
	<body>
	
	<div class="user-info mt50 clearfix"  >
						
						<form action="adressUpdate" method="get">
						
							<div class="fl base-info">
								<ul>							
									<li>
										<label class="fl l-option">姓名：</label><input type="text" class="fl ml10"  name="adressName" value="${Adress.adressName}">
									</li>
									<li>
										<label class="fl l-option">电话：</label><input type="text" class="fl ml10"  name="adressPhone" value="${Adress.adressPhone}">
									</li>
									</ul>
								
								
								
							  <ul>
									<li>
										<label class="fl l-option">地址：</label>
<div id="distpicker1">
  <select id="province">
 		<option>${Adress.adressProvince}</option> 
  </select>
  <select id="city"><option>${Adress.adressCity}</option> </select>
  <select id="area"><option>${Adress.adressArea}</option> </select>
</div>
							</li>
										<li>
										<label class="fl l-option">地址：</label>
										<input type="text" class="fl ml10" placeholder="地址" name="adressAdress" value="${Adress.adressAdress}">
									</li>
									<li>
										<label class="fl l-option">邮编：</label><input type="text" class="fl ml10" placeholder="邮编" name="adressCode" value="${Adress.adressCode}">
									</li>
									<li class="but-li pl10"><input type="submit" class="green-but radius3 fs16 ml50" value="保存修改"></li>
								</ul>
							</div>							
						</form>
					</div>
					</body>
					<script type="text/javascript">
					$("#distpicker1").distpicker();
					</script>
					<script type="text/javascript">
					 $(function() {
						 
					
					var province=${Adress.adressProvince};
					var city=${Adress.adressCity};
					var area=${Adress.adressArea};
					alert(province)
					var op = $("<option value='"+province+"'>" + province
                        + "</option>");
                $("#province").append(op);
					 }
					$('#province').val(province);
					$('#province').trigger("change");
					$('#city').val(city);
					$('#city').trigger("change");
					$('#area').val(area);
					 
					</script>
					</html>